<?php

return [
    // 默认磁盘
    'default' => 'local',
    // 磁盘列表
    'disks'   => [
        'local'  => [
            'type' => 'local',
            'root' => app()->getRuntimePath() . 'storage',
        ],
        'public' => [
            // 磁盘类型
            'type'       => 'local',
            // 磁盘路径
            'root'       => app()->getRootPath() . 'public/storage',
            // 磁盘路径对应的外部URL路径
            'url'        => '/storage',
            // 可见性
            'visibility' => 'public',
        ],
        // 更多的磁盘配置信息
        'minio' => [
            'type' => 'zhtp\upload\disk\S3',
            'root' => '',
            'url' => '/' . env('MINIO_BUCKET'),

            // Minio 相关配置
            'credentials' => [
                'key' => env('MINIO_ACCESS_KEY'),
                'secret' => env('MINIO_SECRET_KEY'),
            ],
            'region' => env('MINIO_REGION', 'us-east-1'),
            'version' => 'latest',
            'bucket_endpoint' => false,
            'use_path_style_endpoint' => false,
            'endpoint' => env('MINIO_ENDPOINT'),
            'bucket' => env('MINIO_BUCKET'),
        ],
    ],
];
